package com.zkthink.ceres.product.service.impl;

import com.zkthink.ceres.product.dao.ProductSkuMapper;
import com.zkthink.ceres.product.entity.ProductSku;
import com.zkthink.ceres.product.service.ProductSkuService;
import com.zkthink.base.service.SuperServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 业务实现类
 * 商品的sku
 * </p>
 *
 * @author JustArgo
 * @date 2020-05-07
 */
@Slf4j
@Service
public class ProductSkuServiceImpl extends SuperServiceImpl<ProductSkuMapper, ProductSku> implements ProductSkuService {

    @Autowired
    private ProductSkuMapper productSkuMapper;

    @Override
    public int updateSkuStock(Long skuId, Integer addStock) {
        return productSkuMapper.updateSkuStock(skuId, addStock);
    }
}
